package com.hifar.test.task.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hifar.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zhuWeiWei
 * @description 任务取消VO
 * @date 2025/6/24 14:42
 */
@Data
@TableName("hf_env_task_cancel")
@ApiModel("任务取消VO")
public class HfEnvTaskCancel extends BaseModel {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("任务id")
    private String taskId;

    @ApiModelProperty("取消原因")
    private String exceptionDesc;

    @ApiModelProperty("曲线时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date recordTime;

    @ApiModelProperty("记录人id")
    private String recordUserId;

    @ApiModelProperty("记录人名称")
    private String recordUserName;
}
